<style>
    .dropdown-toggle.unread::before {
        content: " ";
        border: 3px solid red;
        border-radius: 3px;
        position: absolute;
        z-index: 1000;
        right: 10px;
        top: 15px;
    }

</style>

<!-- 消息提醒 -->
{if isset($messages)}
<li class="dropdown notifications-menu hidden-xs">
    <a href="{$messages['url']}" class="dropdown-toggle {$messages['count']>0 ? 'unread' : ''}">
        <i class="fa fa-bell-o fa-lg"></i><span class="label label-warning"></span>
    </a>
</li>
{else/}
<li class="dropdown notifications-menu hidden-xs">
    <a href="/user/mall/oper/notification?ref=addtabs" class="dropdown-toggle">
        <i class="fa fa-bell-o fa-lg"></i><span class="label label-warning"></span>
    </a>
</li>
{/if}
